package com.xtx.air.dao.trade.impl;

import java.util.List;

import com.xtx.air.dao.trade.ITradeDetailsDAO;
import com.xtx.air.dataobject.TradeDetailsDO;
import com.xtx.dao.BaseDAOImpl;

public class TradeDetailsDAOImpl extends BaseDAOImpl implements ITradeDetailsDAO {

	@Override
	public void addTradeDetails(List<TradeDetailsDO> tradeDetailsDOList) {
		executeInsertBatch("INSERT-BATCH-TRADEDETAILS", tradeDetailsDOList);
	}

	@Override
	public List<TradeDetailsDO> findTradeDetails(TradeDetailsDO tradeDetailsDO) {
		return executeQueryForList("SELECT-TRADEDETAILS", tradeDetailsDO);
	}

	@Override
	public void updateTradeDetails(List<TradeDetailsDO> tradeDetailsDOList) {
		executeUpdateBatch("UPDATE-TRADEDETAILS", tradeDetailsDOList);
	}
}